package cn.toolck.service;

import java.util.Random;
import java.util.concurrent.TimeUnit;
import java.util.stream.DoubleStream;

public interface SleepService {
    default void sleep(long i) {
        long time = (long) (new Random().nextDouble() * 100);
        try {
            TimeUnit.MILLISECONDS.sleep(time);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
